package com.lichuandi.springbootdemo1.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Lichuandi
 * @version 1.0
 * @program : springbootdemo1
 * @ClassName AjaxController
 * @description :
 * @create: 2024-11-27 15:11
 **/
//@CrossOrigin(origins = "*",maxAge = 3600)
@RestController("ajax")
@RequestMapping("/ajax")
public class AjaxController {
    @RequestMapping("/testAjax")
    public String testAjax(){
        return "hello ajax";
    }
}
